// 首页 模块

import { SystemSpace } from "@/api/interface/home"
// import { ResPage } from "@/api/interface/index"
import http from "@/api"

// ------------------ 首页统计 ------------------ //
// 能源统计
export const energyStat = (params: SystemSpace.EnergyStatQuery) => {
  return http.get<SystemSpace.EnergyStat[]>("/home/stat/energyStat", params)
}
// 电能趋势
export const electricTrendStat = () => {
  return http.get<SystemSpace.ElectricTrendStat[]>("/home/stat/electricTrendStat")
}
// 水燃趋势
export const waterGasTrend = () => {
  return http.get<SystemSpace.WaterGasTrend[]>("/home/stat/waterGasTrend")
}
// 产线电能排名
export const electricLineRank = (params: SystemSpace.ElectricLineRankQuery) => {
  return http.get<SystemSpace.ElectricLineRank[]>("/home/stat/electricLineRank", params)
}
// 峰平谷占比
export const bandStat = (params: SystemSpace.BandStatQuery) => {
  return http.get<SystemSpace.BandStat>("/home/stat/electricPriceStat", params)
}
